how to prove a right triangle with coordinates